package HuaWeiPractice;

import java.util.Scanner;

/**
 * created by ysy 2022/3/4 11:39
 *
 * @author 杨双洋
 * @version 1.0
 * @Email Yangsybd@163.com
 */
public class LastWordLength {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String[] lSplit = line.split(" ");
        int length = lSplit.length;
        int lWordLength = lSplit[length - 1].length();
        System.out.println("最后一个单词长度是："+lWordLength);

    }
}
